<?php

use Illuminate\Database\Seeder;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $arr = [];

        for($i=0;$i<100;$i++){
            $tmp = [];
            $tmp['username'] = str_random(20);
            $tmp['email'] = str_random(8).'@qq.com';
            $tmp['passworld'] = Hash::make('lampbrother');
            $tmp['profile'] = '/uploads/20170613/1497339720186132.jpg';
            $tmp['intro'] = str_random(100);
            $tmp['date'] = time();
            $arr[] =$tmp;
        }

        DB::table('users')->insert($arr);
    }
}
